/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stack.tester;

import stack.ArrayStack;
import stack.NodeStack;

/**
 *
 * @author pc
 */
public class TestNode {

    public static void main(String[] args) throws InterruptedException {
        boolean tmp;
        int cap;
        NodeStack<Integer> a = new NodeStack<Integer>();
        System.out.println(a.isEmpty());
        for (cap = 0; cap < 10000; cap++) {
            a.push(cap);
            tmp = (cap == a.top() ? true : false);
            System.out.println(cap + "  " + a.top() + "  " + tmp + "  " + a.isEmpty());
        }

        for (cap = 9999; cap >= 0; cap--) {

            tmp = (cap == a.top() ? true : false);

            System.out.println(cap + "  " + a.top() + "    " + a.pop() + "  " + tmp + "  " + a.isEmpty());
        }

        System.out.println(a.isEmpty());



    }
}
